<template>
    <div class="chat_sender_container">
        <span class="chat_sender_name">我:</span>
        <div class="chat_sender_item">
            {{ props.itemInfo.content }}
        </div>
    </div>
</template>

<script setup>
    import { onMounted } from 'vue';

    const props = defineProps(['itemInfo'])
    const emit = defineEmits(['notifySender'])

    onMounted(()=> {
        emit('notifySender')
    })
</script>

<style scoped>
.chat_sender_container {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}
.chat_sender_container .chat_sender_item {
    max-width: 80%;
    padding: 8px;
    color: black;
    border-radius: 5px;
    border-color: #8a2be2;
    border-width: 2px;
    border-style: solid;
    font-size: 20px;
}

.chat_sender_container .chat_sender_name {
    margin-right: 5px;
    font-size: 20px;
}
</style>